package com.carb.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.fasterxml.jackson.annotation.JsonValue;
import lombok.Getter;

/**
 * 评价状态 (0: 禁止评价, 1: 已评价, 2: 待评价)
 */
@Getter
public enum FeedbackStatus {
    FORBID_FEEDBACK(0, "禁止评价"),
    ALREADY_FEEDBACK(1, "已评价"),
    WAIT_FEEDBACK(2, "待评价");

    @EnumValue
    private final int code;
    @JsonValue
    private final String desc;

    FeedbackStatus(int code, String desc) {
        this.code = code;
        this.desc = desc;
    }
}
